package DesignPattern.Structure.Adapter.ObjectAdapter;

import DesignPattern.Structure.Adapter.ClassAdapter.TFCard;

public class SDAdapterTF implements SDCard {
    private TFCard tfCard;

    public SDAdapterTF(TFCard tfCard) {
        this.tfCard = tfCard;
    }

    @Override
    public String readSDCard() {
        System.out.println("AdapterTF readSDCard");
        return tfCard.readTF();
    }

    @Override
    public void writeSDCard(String data) {
        System.out.println("AdapterTF writeSDCard");
        tfCard.writeTF(data);
    }
}
